home *** CD-ROM | disk | FTP | other *** search
/ Megaware 1 / Megaware Volume 1.iso / programg / pc-file / card < prev    next >
Text File  |  1990-11-27  |  14KB  |  359 lines

  1. PC-FILE 5 QUICK REFERENCE CARD
  2.  
  3.  
  4. SPECIAL KEYS WHEN TYPING
  5.  
  6. KEY            FUNCTION
  7.  
  8. +              Browse up
  9. -              Browse down
  10. (Alt)C         Calculator hot-key
  11. (Alt)D         drop to DOS
  12. (Alt)E         activate Editor (in memo field)
  13. (Alt)H         HELP
  14. (Alt)I         Switch to next index
  15. (Alt)J         Jingle (place a phone call)
  16. (Alt)M         load new Macro smart keys
  17. (Alt)P         Print screen (cleaned up)
  18. (Alt)T         TEACH mode (on/off)
  19. (Alt)V         View memo field data
  20. (Alt)X         force PC-File to use current indeX
  21. (Alt)Y         Smart key memorize (on/off)
  22. (Ctrl)A        accept data (same as (F10))
  23. (Ctrl)B        blank right, to end of field
  24. (Ctrl)D        duplicate all of previous record
  25. (Ctrl)E        activate Editor (in memo field)
  26. (Ctrl)F        duplicate Field from previous record
  27. (Ctrl)J        Jingle (place a phone call)
  28. (Ctrl)L        print a Label (Snapshot)
  29. (Ctrl)O        Flip the flip data character
  30. (Ctrl)P        Print screen (cleaned up)
  31. (Ctrl)R        read into memory
  32. (Ctrl)W        write from memory
  33. (Del)          delete the character at the cursor
  34. down arrow     move cursor to following field or line
  35. (End)          cursor right, past last significant character
  36. (Enter)        move cursor to next field
  37. (Esc)          cancel this operation
  38. (F10)          accept data
  39. (Home)         cursor left, to start of field
  40. (Ins)          Insert mode (on/off)
  41. left arrow     move cursor left 1 position
  42. (PgDn)         move cursor to next data entry screen
  43. (PgUp)         move cursor to previous data entry screen
  44. right arrow    move cursor right 1 position
  45. tab            move cursor to next field, or
  46.                move browse window one field to the right
  47. tab left       move cursor to prior field, or
  48.                move browse window one field to the left
  49. tilde (~)      the "flip data" character
  50. up arrow       move cursor to preceding field or line
  51.  
  52.  
  53. DEFINING THE DATABASE
  54.  
  55. Edit mask examples:
  56.  
  57. :azAZ:                  allows only alphabetic characters
  58. :AAaaEEeeIIiiOOooUUuu:  allows only vowels
  59. :09//--  :              good for date fields
  60.  
  61. Automatic Fields (In edit mask area)
  62.  
  63. :DATE*:                 mm-dd-yy
  64. :MM/DD/YY*:             mm/dd/yy
  65. :YYMMDD*:               yymmdd
  66. :YYYYMMDD*:             yyyymmdd
  67. :MO*:                   mm
  68. :DY*:                   dd
  69. :YR*:                   yy
  70. :TIME*:                 hh:mm
  71. :DD/MM/YY*:             dd/mm/yy
  72. :UNIQUE*:*A             unique no.
  73. :DUPE*:                 auto dupe
  74.  
  75. Automatic field can also have an input edit mask:
  76.      :DATE*09//:
  77. Automatic field only when adding records:
  78.      :DATE*:*A
  79. Automatic field only when modifying:
  80.      :DATE*:*M
  81. Automatic field only when blank:
  82.      :DATE*:*B
  83. Automatic Constant
  84.      "New York City"
  85.      "Des Moines"*A           (only when adding records)
  86.      "Milton Freewater"*M     (only when modifying)
  87.      "Completed"*B            (only when blank)
  88. Calculated fields example:
  89.      ((cost + adjustments) / 100).2
  90. Relational lookup example:
  91.      (@empno,empmast,empnumber,salary)*B
  92.  
  93. FIND: TYPES OF SEARCHES
  94.  
  95. xxx            generic (exact, first part)
  96. ~xxx           scan across
  97. ?xxx           sounds-like
  98. ___x           wildcard
  99. WHEN CALCULATIONS ARE ASKED FOR:
  100.  
  101. arithmetic operators:
  102.      +    addition
  103.      -    subtraction or negation
  104.      *    multiplication
  105.      /    division
  106.      %    modulo (remainder)
  107.      ^    exponentiation
  108.  
  109. logical operators:
  110.      &    and
  111.      |    or
  112.  
  113. comparison operators:
  114.      =    equal
  115.      !=   not equal
  116.      >    greater than
  117.      >=   greater than or equal
  118.      <    less than
  119.      <=   less than or equal
  120.  
  121. special calculations:
  122.  (@RANDOM#)     creates a random number between 0 and 1
  123.  (@TODAY#)      creates todays relative "day number"
  124.  (@DAY#,mask)   get date from stack, convert to day#
  125.                 mask tells date format:
  126.                 ymd  ydm  mdy  myd  dmy  dym  yymmdd
  127.  (@DATE,mask)   get day# from stack, convert to date
  128.                 mask tells date format: examples  mdy/   dmy-
  129.  (@key1,dbase2,key2,answer2)
  130.                 a relational lookup
  131.  (@*,answer3)   a subsequent relational lookup into same record
  132.  
  133. example arithmetic calculation:
  134.      ((cost + adjust) / 100)
  135. example comparison calculation:
  136.      ((age >= 21 & age < 40) & sex = "F")
  137. example date arithmetic: difference between 2 dates
  138.      (date2(@DAY#,mdy) - date1(@DAY#,mdy))
  139. example date arithmetic: date 60 days later
  140.      ((date1(@DAY#,mdy) + 60)(@DATE,mdy/))
  141. COMMANDS WITHIN SMART KEY DATA
  142.  
  143. F1        [315]          rt arrow    [333]          (Alt)P  [281]
  144. F2        [316]          End         [335]          (Alt)T  [276]
  145. F3        [317]          down arrow  [336]          (Alt)V  [303]
  146. F4        [318]          PgDn        [337]          (Alt)Y  [277]
  147. F5        [319]          Ins         [338]          (Ctrl)A [1]
  148. F6        [320]          Del         [339]          (Ctrl)B [2]
  149. F7        [321]          Tab         [9]            (Ctrl)D [4]
  150. F8        [322]          Shift Tab   [271]          (Ctrl)E [5]
  151. F9        [323]          (Alt)C      [302]          (Ctrl)F [6]
  152. F10       [324]          (Alt)D      [288]          (Ctrl)J [10]
  153. Enter     [13]           (Alt)E      [274]          (Ctrl)L [12]
  154. Home      [327]          (Alt)H      [291]          (Ctrl)O [15]
  155. up arrow  [328]          (Alt)I      [279]          (Ctrl)P [16]
  156. PgUp      [329]          (Alt)J      [292]          (Ctrl)R [18]
  157. lft arrow [331]          (Alt)M      [306]          (Ctrl)V [22]
  158.                                                     (Ctrl)W [23]
  159.  
  160. REPORT COMMAND LANGUAGE
  161.  
  162. The sections of the report
  163.  
  164. :COVER              once at beginning of report
  165. :HEADING            top of each page
  166. :DETAIL             once for each record printed
  167. :SUBTOTAL           at each subtotal break
  168. :FOOTING            bottom of each page
  169. :TOTAL              at end of the report
  170.  
  171. Commands in filename.rep (1 command per line):
  172.  
  173. [xxx]               field xxx data prints here
  174. [COUNT*]            print count of records printed so far
  175. [DATE*]             today's date prints here
  176. [KEYIN*prompt]      ask operator input, print here
  177. [PAGE*]             print page number here
  178. [RECORDS*]          print no. of records in database
  179. [SELECT*]           print the selection criteria
  180. [SORT*]             print the primary sort field name
  181. [SUBCMD*n]          print subtotal trigger formula
  182. [SUBCOUNT*n]        print count of records in subtotal group
  183. [SUBFLD*n]          print field name of subtotal break field
  184. [SUBID*n]           print data from subtotal break field
  185. [SUBLEVEL*]         print level number of subtotal break
  186. [TIME*]             the current time prints here
  187. A nn,nnn,nn         print ASCII printer control codes here
  188. <xxx>               field xxx data (excess spaces removed)
  189. "xxx"               a constant
  190. =nn                 tab to column nn
  191. /n                  insert n newlines
  192. .FF                 form feed to new page
  193. .CP nn              conditional skip to new page
  194. .IF (calc.)         if calc is true, include following commands
  195. .ELSE               if calc is not true, include following
  196. .ENDIF              end of IF construct
  197. .GROUP              start a group (no blank lines)
  198. .EGROUP             end a group
  199. .EGROUP R           end a group, replace blank lines
  200. (a+b):z,zz#.##:     a calculated answer, with output mask
  201. (@K1,DB,k2,x2):@@@: a relational lookup
  202. (@*,fld):@@@@:      a relational lookup into the same record
  203.  
  204. Output Edit Masks (examples)
  205.  
  206. :@@@@@@@@@@@@:      a character field mask
  207. :#####:             numbers, all digits appear
  208. :zz,zz#.##:         zero suppress, with commas
  209. :$$$$$$.##:         floating dollar sign
  210. :******.##:         asterisk check protection
  211. :=12,0,100,* :      bar chart mask
  212. :WWWWWW:            word wrap mask
  213. ::                  null mask (nothing prints)
  214.  
  215. MAIL-MERGE COMMANDS  (IMBED IN LETTER)
  216.  
  217. .<fieldname>        insert data, blanks stripped
  218. .[fieldname]        insert data, no blanks removed
  219. .<KEYIN*prompt>     insert data from keyboard
  220. .<DATE*>            insert today's date
  221. .GROUP              start a group (no blank lines)
  222. .EGROUP             end a group
  223. .EGROUP R           end a group, replace blank lines
  224. .FORMFEED           skip to new page on printer
  225. .FF                 skip to new page on printer
  226. .CP nn              conditional skip to new page
  227. .IF (calculation)   if calc is true, include following
  228. .ELSE               " not true, include  "    "
  229. .ENDIF              end of IF construct
  230. .<(a+b):z,zz#.##:>  a calculated answer
  231. .<(@K1,DB2,k2,x2):@@@@@@:>
  232.                     a relational lookup answer
  233.  
  234. SORT ALTERNATIVES (SORT FIELD #n)
  235.  
  236. fieldname           sort on entire field
  237. fieldname,3,5       data starts in byte=3, length=5
  238. fieldname,R         Roman Numeral sort
  239. fieldname,S         sounds-like sort
  240. (@RANDOM#)          random sequence
  241. (fieldname(@DAY#,mdy))
  242.                     sort on field that's in mm/dd/yy format
  243. COMMANDS IN PROFILE FILES
  244.  
  245. /ADDPW,xxx     password allowing additions to database
  246. /AUTOSKIP      automatic skip to next field when full
  247. /BG,n          set background screen color 0-7 (note 1)
  248. /BGW,n         set background window color 0-7 (note 1)
  249. /CASEFIND      searches will be case sensitive
  250. /CASESORT      sorts will be case sensitive
  251. /CONDENSED,n,n ASCII values to cause condensed print
  252. /DELAY,n       slow down smart keys n/18 of a second
  253. /DELPW,xxx     password allowing deletions in database
  254. /DRIVE,x       default disk for data
  255. /EGA           use 35 lines on EGA or 40 lines on VGA
  256. /ENTER         Force Enter key to behave like (F10) key
  257. /EURODATE      Use european date format in reports
  258. /EXPERT        smaller menu prompts where possible
  259. /FASTVIEW      fastest screen writes (possible snow)
  260. /FG,n          set foreground screen color 0-15 (note 1)
  261. /FG2,n         set alternate color (field names, highlight)
  262. /FGW,n         set foreground window color 0-15 (note 1)
  263. /FILE,xxx      default database name
  264. /KEYIN,xxx     keystrokes to run at startup
  265. /LAN           turns on LAN file sharing mode
  266. /LBL,xxx       gives Snapshot Label format (note 2)
  267. /MEMOW,n       the width of the Memo window
  268. /MODPW,xxx     password allowing modify in database
  269. /NODESC        suppress displaying of file descriptions
  270. /NORMAL,n,n    ASCII values to cause normal print size
  271. /NOTRAP        don't trap disk errors and (Ctrl)break
  272. /PAGELEN,n     size of page (no. of print lines)
  273. /PATH,xxx      default subdirectory for data
  274. /PHINIT,xxxx   modem initialization string
  275. /PHPORT,COMx   The COM port to Jingle phone calls thru
  276. /PHPRE,xxx     Telephone "connect" command characters
  277. /PRPORT,LPTx   printer output port
  278. /SORTPW,xxx    password allows sorts on database
  279. /SYSPW,xxx     password allows system operations
  280. /USEPW,xxx     password allows use of the database
  281. /VGA           use 35 lines on EGA or 40 lines on VGA
  282. /XXXPW,xxx     password allows override of all passwords
  283.  
  284. Note 1.
  285.  Screen colors: bg 0-7, fg 0-15, fg2 0-15, bgw 0-7, fgw 0-15
  286.  0 black               5 magenta            10 lt. green
  287.  1 blue                6 brown              11 lt. cyan
  288.  2 green               7 white              12 lt. red
  289.  3 cyan                8 gray               13 lt. magenta
  290.  4 red                 9 lt. blue           14 yellow
  291.                                             15 brt white
  292. Note 2.
  293.      Snapshot Feature specification:
  294.           dev,t,f,f,f,f......
  295.                dev  = LPT1:, LPT2:, MYFILE, etc.
  296.                t    = no. chars to tab in at left margin
  297.                f    = field number, or command
  298.                0    = new line
  299.                -n   = insert n spaces
  300.                'xx' = insert xx (a constant)
  301. SPECIAL KEYS IN EDITOR
  302.  
  303. Cursor movement keys
  304. End            Move to last character of current line.
  305. Home           Move to first position on line.
  306. PgDn           Shift down one screen (if enough left).
  307. PgUp           Shift up one screen (if enough left).
  308. Ctrl End       Move to lower left corner of current window.
  309. Ctrl Home      Move to upper left corner of current window.
  310. Ctrl Lft Arrow Move to beginning of previous word.
  311. Ctrl PgDn      Move to bottom line.
  312. Ctrl PgUp      Move to top line.
  313. Ctrl Rt Arrow  Move to beginning of next word.
  314. Shift Tab      Tab to the left
  315. Tab            Tab to the right
  316.  
  317. Commands
  318. Ctrl \         Split line at cursor
  319. Ctrl A         Toggles automatic paragraph wrapping
  320. Ctrl B         Mark corner of block
  321. Ctrl C         Copy marked area (to below cursor)
  322. Ctrl D         Delete blocked area
  323. Ctrl E         Erase from cursor line to end of document
  324. Ctrl F         Fill marked area with selected character
  325. Ctrl L         Mark line or lined area
  326. Ctrl M         Move marked area
  327. Ctrl O         Overlay marked area
  328. Ctrl R         Reformat blocked area. If no area blocked,
  329.                reformats current paragraph
  330. Ctrl U         Unmark the marked area
  331. Ctrl V         Enable / disable "whoops" key
  332. Ctrl W         "Whoops" - Recall previous buffer
  333. Esc            Inserts esc character in text -
  334.                two Esc strokes in a row exit the editor
  335. F3             Menu of editor commands
  336. F5             Delete current line
  337. F6             Erase from cursor to end of line
  338. F10            Exit and keep all changes
  339.  
  340.  
  341. COMMANDS FOR USER-DEFINED INDEXES
  342.  
  343. ABS(num)              DAY(date)             ISDIGIT(char)
  344. ASC(char)             DESCEND(char)         ISLOWER(char)
  345. AT(str,str)           DOW(date)             ISUPPER(char)
  346. CDOW(date)            DTOC(date)            LEFT(char,len)
  347. CHR(num)              EXP(num)              LEN(char)
  348. CMONTH(date)          IIF(cond,expr,expr)   LOWER(char)
  349. CTOD(char)            INT(num)              LTRIM(char)
  350. DATE()                ISALPHA(char)         MAX(num,num)
  351. MIN(num,num)          RIGHT(char,num)       STUFF(char,num,num,char)
  352. MOD(num,num)          ROMAN(char)           SUBSTR(char,num,num)
  353. MONTH(date)           ROUND(num,num)        TIME()
  354. RECCOUNT()            RTRIM(char)           TRIM(char)
  355. RECNO()               SOUNDEX(char)         TYPE(any)
  356. RECSIZE()             SPACE(num)            UPPER(char)
  357. REPLICATE(char,num)   STR(num,num,num)      VAL(char)
  358.                       TOSTR(any)            YEAR(date)
  359.